package com.star.spring.easyexcel.model;


import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

import lombok.Data;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.converters.string.StringImageConverter;
import com.star.spring.easyexcel.convert.LocalTimeConvert;

@Data
public class ExportDTO {
    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("年龄")
    private Integer age;
    @ExcelProperty("邮箱")
    private String email;
    @ExcelProperty("电话")
    private String phone;
    @ExcelProperty("地址")
    private String address;
    @ExcelProperty(value = "图片", converter = StringImageConverter.class)
    private String image;

    @ExcelProperty(value = "时间", converter = LocalTimeConvert.class)
    private LocalTime localTime;
    @ExcelProperty("日期")
    private LocalDate localDate;
    @ExcelProperty("日期时间")
    private LocalDateTime localDateTime;

}
